import request from '../request/request'
import API from '../request/api'

export default {
  async getShopList (param = {}) {
    return request.get(API.shops, param)
  },
  async getShop (id) {
    const url = API.shop(id)
    return request.get(url)
  }
}
